package com.situ.mq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class SpringRabbitListener {
	@RabbitListener(queues = "basic.queue")
	public void listenBasicQueue(String msg){

		System.out.println("消费者收到basic.queue的消息："+ msg);
	}
}
